# Run in phpMyAdmin or Whatever You're Using to Reach your Database Panel:
INSERT INTO `permissions` (`id`, `name`, `access_key`) VALUES (NULL, 'Custom Fields', 'custom_fields');
CREATE TABLE `custom_fields` (`id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(90) NOT NULL, `type` VARCHAR(30) NOT NULL, `options` VARCHAR(1500) NOT NULL, `is_required` TINYINT UNSIGNED NOT NULL, `guide_text` VARCHAR(255) NOT NULL, `updated_at` INT UNSIGNED NULL, `created_at` INT UNSIGNED NOT NULL, PRIMARY KEY (`id`)) ENGINE = InnoDB;
CREATE TABLE `tickets_custom_fields` (`id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `ticket_id` INT UNSIGNED NOT NULL, `custom_field_id` TINYINT UNSIGNED NOT NULL, `value` TEXT NOT NULL, PRIMARY KEY  (`id`)) ENGINE = InnoDB;

// If You've Added Any Permissions Other than the Default Permissions of the Script, Please Assign the Permissions to the Super Admin or Agent Roles Manually (Through the Admin Panel) Instead of Running it:
INSERT INTO `roles_permissions` (`id`, `role_id`, `permission_id`) VALUES (NULL, '1', '18');